home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
DESKLIBC
/
SOURCES.ZIP
/
DeskLib
/
!DLSources
/
Libraries
/
Template
/
DLL
/
MkStubsOs
< prev
next >
Wrap
Text File
|
1995-09-04
|
8KB
|
333 lines
ObjectFiles = \
o.ClearAll \
o.Clone \
o.Delete \
o.Find \
o.Free \
o.Init \
o.LinkSprite \
o.LoadFile \
o.UseOutFont \
o.UseSprite \
LibName = Template
# Template makefile to make all .o files
# and the SDLS Stubs file for DeskLib
# sublibraries.
# Julian Smith 16 Mar 1995.
# The macro $(ObjectFiles) should be set at the
# start of this file, to be a space-separated
# list of object files.
# This is done by 'Makatic'.
# The macro $(LibName) should also be set at the
# start of this file, to be the name of the
# DeskLib sublibrary.
# This is done by 'Makatic'.
# Compiler and linker flags, These can be anything.
# All flags required by Straylight (eg CC -zM and
# Link -rmf) are included in the macros $(CC) and
# $(LINK).
#
CCFlags = -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
ASMFlags = -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
# Macros for commands, including the Straylight
# tool 'cdll'. Note that DRLink doesn't seem to
# work with the SDLS.
#
CC = cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
ASM = ObjAsm $(ASMFlags)
CDLL = cdll
LINK = link
AS = as -dde -throwback
# filename of DLL Stubs aof file. This is linked with client apps.
#
DLL_Stubs = Stubs
# Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
#
# DLL_Def: Standard definition file as per SDLS docs.
# DLL_OtherStubsSource Assembler source to be partially linked into
# the final stubs file. This will force linking
# in of stubs from any other DLLs used by this
# library when a client application is built.
# DLL_PlainStubs The vanilla stubs file created by SDLS's cdll.
# DLL_OtherStubsObject Assembled from DLL_OtherStubsSource. This
# simply imports __DeskLib_SDLS_Stubs_<libname>'s
# for all DeskLib DLLs used by this library, and
# exports __DeskLib_SDLS_Stubs_<thislibname>.
#
DLL_Def = ^.DLLDef
DLL_OtherStubsSource = ^.OtherStubs
DLL_PlainStubs = PlainStubs
DLL_OtherStubsObject = OSObj
# -------------------------------------------------------
# Everything below here should probably not be changed...
# -------------------------------------------------------
# Now all the rules...
# Here's the two things we want to make...
#
All: $(DLL_Stubs) $(ObjectFiles)
$(DLL_Stubs): $(DLL_PlainStubs) $(DLL_OtherStubsObject)
$(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
$(DLL_PlainStubs): $(DLL_Def)
$(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
#$(DLL_OtherStubsObject): $(DLL_OtherStubsSource)
# $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
$(DLL_OtherStubsObject): $(DLL_OtherStubsSource)
$(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject)
$(DLL_Def):
| Warning: No DLL definition file exists.
| Creating a default DLL definition file: $(DLL_Def)
| This will have to be altered by hand.
$(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
# Rule for compiling C source code for a Straylight dynamically-linked library.
VPATH = @.^
.SUFFIXES: .o .c .s
.c.o:
$(CC) -o $@ $<
.s.o:
$(ASM) $(ASMFlags) -from $< -to $@
# Dynamic dependencies:
o.ClearAll: ^.c.ClearAll
o.ClearAll: ^.h.TempDefs
o.ClearAll: C:h.stdlib
o.ClearAll: C:h.stdio
o.ClearAll: C:h.string
o.ClearAll: DeskLib:h.LinkList
o.ClearAll: DeskLib:h.Core
o.ClearAll: C:h.stddef
o.ClearAll: C:DLLLib.h.dll
o.ClearAll: C:h.kernel
o.ClearAll: DeskLib:h.WimpSWIs
o.ClearAll: DeskLib:h.Wimp
o.ClearAll: DeskLib:h.Error
o.ClearAll: DeskLib:h.Resource
o.ClearAll: DeskLib:h.Sprite
o.ClearAll: DeskLib:h.Coord
o.ClearAll: C:h.stdarg
o.ClearAll: DeskLib:h.Template
o.ClearAll: DeskLib:h.StringCR
o.ClearAll: DeskLib:h.Str
o.ClearAll: C:h.stddef
o.ClearAll: DeskLib:h.Font
o.Clone: ^.c.Clone
o.Clone: ^.h.TempDefs
o.Clone: C:h.stdlib
o.Clone: C:h.stdio
o.Clone: C:h.string
o.Clone: DeskLib:h.LinkList
o.Clone: DeskLib:h.Core
o.Clone: C:h.stddef
o.Clone: C:DLLLib.h.dll
o.Clone: C:h.kernel
o.Clone: DeskLib:h.WimpSWIs
o.Clone: DeskLib:h.Wimp
o.Clone: DeskLib:h.Error
o.Clone: DeskLib:h.Resource
o.Clone: DeskLib:h.Sprite
o.Clone: DeskLib:h.Coord
o.Clone: C:h.stdarg
o.Clone: DeskLib:h.Template
o.Clone: DeskLib:h.StringCR
o.Clone: DeskLib:h.Str
o.Clone: C:h.stddef
o.Delete: ^.c.Delete
o.Delete: ^.h.TempDefs
o.Delete: C:h.stdlib
o.Delete: C:h.stdio
o.Delete: C:h.string
o.Delete: DeskLib:h.LinkList
o.Delete: DeskLib:h.Core
o.Delete: C:h.stddef
o.Delete: C:DLLLib.h.dll
o.Delete: C:h.kernel
o.Delete: DeskLib:h.WimpSWIs
o.Delete: DeskLib:h.Wimp
o.Delete: DeskLib:h.Error
o.Delete: DeskLib:h.Resource
o.Delete: DeskLib:h.Sprite
o.Delete: DeskLib:h.Coord
o.Delete: C:h.stdarg
o.Delete: DeskLib:h.Template
o.Delete: DeskLib:h.StringCR
o.Delete: DeskLib:h.Str
o.Delete: C:h.stddef
o.Find: ^.c.Find
o.Find: DeskLib:h.GFX
o.Find: ^.h.TempDefs
o.Find: C:h.stdlib
o.Find: C:h.stdio
o.Find: C:h.string
o.Find: DeskLib:h.LinkList
o.Find: DeskLib:h.Core
o.Find: C:h.stddef
o.Find: C:DLLLib.h.dll
o.Find: C:h.kernel
o.Find: DeskLib:h.WimpSWIs
o.Find: DeskLib:h.Wimp
o.Find: DeskLib:h.Error
o.Find: DeskLib:h.Resource
o.Find: DeskLib:h.Sprite
o.Find: DeskLib:h.Coord
o.Find: C:h.stdarg
o.Find: DeskLib:h.Template
o.Find: DeskLib:h.StringCR
o.Find: DeskLib:h.Str
o.Find: C:h.stddef
o.Free: ^.c.Free
o.Free: ^.h.TempDefs
o.Free: C:h.stdlib
o.Free: C:h.stdio
o.Free: C:h.string
o.Free: DeskLib:h.LinkList
o.Free: DeskLib:h.Core
o.Free: C:h.stddef
o.Free: C:DLLLib.h.dll
o.Free: C:h.kernel
o.Free: DeskLib:h.WimpSWIs
o.Free: DeskLib:h.Wimp
o.Free: DeskLib:h.Error
o.Free: DeskLib:h.Resource
o.Free: DeskLib:h.Sprite
o.Free: DeskLib:h.Coord
o.Free: C:h.stdarg
o.Free: DeskLib:h.Template
o.Free: DeskLib:h.StringCR
o.Free: DeskLib:h.Str
o.Free: C:h.stddef
o.Init: ^.c.Init
o.Init: ^.h.TempDefs
o.Init: C:h.stdlib
o.Init: C:h.stdio
o.Init: C:h.string
o.Init: DeskLib:h.LinkList
o.Init: DeskLib:h.Core
o.Init: C:h.stddef
o.Init: C:DLLLib.h.dll
o.Init: C:h.kernel
o.Init: DeskLib:h.WimpSWIs
o.Init: DeskLib:h.Wimp
o.Init: DeskLib:h.Error
o.Init: DeskLib:h.Resource
o.Init: DeskLib:h.Sprite
o.Init: DeskLib:h.Coord
o.Init: C:h.stdarg
o.Init: DeskLib:h.Template
o.Init: DeskLib:h.StringCR
o.Init: DeskLib:h.Str
o.Init: C:h.stddef
o.LinkSprite: ^.c.LinkSprite
o.LinkSprite: DeskLib:h.Wimp
o.LinkSprite: DeskLib:h.Core
o.LinkSprite: C:h.stddef
o.LinkSprite: C:DLLLib.h.dll
o.LinkSprite: C:h.kernel
o.LinkSprite: DeskLib:h.Sprite
o.LinkSprite: DeskLib:h.Coord
o.LinkSprite: C:h.stdarg
o.LinkSprite: DeskLib:h.Template
o.LinkSprite: DeskLib:h.LinkList
o.LoadFile: ^.c.LoadFile
o.LoadFile: ^.h.TempDefs
o.LoadFile: C:h.stdlib
o.LoadFile: C:h.stdio
o.LoadFile: C:h.string
o.LoadFile: DeskLib:h.LinkList
o.LoadFile: DeskLib:h.Core
o.LoadFile: C:h.stddef
o.LoadFile: C:DLLLib.h.dll
o.LoadFile: C:h.kernel
o.LoadFile: DeskLib:h.WimpSWIs
o.LoadFile: DeskLib:h.Wimp
o.LoadFile: DeskLib:h.Error
o.LoadFile: DeskLib:h.Resource
o.LoadFile: DeskLib:h.Sprite
o.LoadFile: DeskLib:h.Coord
o.LoadFile: C:h.stdarg
o.LoadFile: DeskLib:h.Template
o.LoadFile: DeskLib:h.StringCR
o.LoadFile: DeskLib:h.Str
o.LoadFile: C:h.stddef
o.UseOutFont: ^.c.UseOutFont
o.UseOutFont: ^.h.TempDefs
o.UseOutFont: C:h.stdlib
o.UseOutFont: C:h.stdio
o.UseOutFont: C:h.string
o.UseOutFont: DeskLib:h.LinkList
o.UseOutFont: DeskLib:h.Core
o.UseOutFont: C:h.stddef
o.UseOutFont: C:DLLLib.h.dll
o.UseOutFont: C:h.kernel
o.UseOutFont: DeskLib:h.WimpSWIs
o.UseOutFont: DeskLib:h.Wimp
o.UseOutFont: DeskLib:h.Error
o.UseOutFont: DeskLib:h.Resource
o.UseOutFont: DeskLib:h.Sprite
o.UseOutFont: DeskLib:h.Coord
o.UseOutFont: C:h.stdarg
o.UseOutFont: DeskLib:h.Template
o.UseOutFont: DeskLib:h.StringCR
o.UseOutFont: DeskLib:h.Str
o.UseOutFont: C:h.stddef
o.UseOutFont: DeskLib:h.Font
o.UseSprite: ^.c.UseSprite
o.UseSprite: ^.h.TempDefs
o.UseSprite: C:h.stdlib
o.UseSprite: C:h.stdio
o.UseSprite: C:h.string
o.UseSprite: DeskLib:h.LinkList
o.UseSprite: DeskLib:h.Core
o.UseSprite: C:h.stddef
o.UseSprite: C:DLLLib.h.dll
o.UseSprite: C:h.kernel
o.UseSprite: DeskLib:h.WimpSWIs
o.UseSprite: DeskLib:h.Wimp
o.UseSprite: DeskLib:h.Error
o.UseSprite: DeskLib:h.Resource
o.UseSprite: DeskLib:h.Sprite
o.UseSprite: DeskLib:h.Coord
o.UseSprite: C:h.stdarg
o.UseSprite: DeskLib:h.Template
o.UseSprite: DeskLib:h.StringCR
o.UseSprite: DeskLib:h.Str
o.UseSprite: C:h.stddef